package com.jingdun.sport.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jingdun.sport.bean.model.RoomUserSportRecordPerDay;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 活动室完成训练表 Mapper 接口
 * </p>
 *
 * @author powell
 * @since 2020-07-11
 */
public interface RoomUserSportRecordPerDayMapper extends BaseMapper<RoomUserSportRecordPerDay> {

    List<RoomUserSportRecordPerDay> getAllRoomMapUserByRoomId(@Param("params") Set<Long> ufinishedRoomIdSet);

    List<RoomUserSportRecordPerDay> getAllRecordByRoomIdAndUserId(@Param("roomId") String roomId, @Param("userId") String userId);

    long getAllRecordByRoomIdAndUserIdAndDate(@Param("roomId") Long roomId, @Param("userId") String userId, @Param("date") Date date);
}
